.tab-placeholder {
    .ant-table-placeholder {
        position: static !important;
    }
}

.modal-select .ant-table-body {
    height: 255px !important;
}

.ModalMessage {
    .ant-modal {
        padding-bottom: 0px !important;
    }

    .ant-modal-content {
        height: 100%;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.15)
    }

    .ant-modal-header {
        padding: 0 !important;
        background: #ffffff;
        border-bottom: 2px solid #e8e8e8;
        color: #000000;
    }

    .ant-modal-title {
        padding: 16px 24px;
        color: #000000;
        font-weight: bold;
    }

    .ant-modal-body {
        height: 51%;
        padding: 10px 38px 10px 38px;
        text-align: center;
    }

    .ant-modal-footer {
        height: 48px;
        line-height: 48px;
        padding: 0px;
    }

    .okBtn {
        background: rgba(242, 242, 242, 1);
        color: #4CC183;
        border-radius: 0 0 4px 4px;
        float: left;
    }

    .okBtn:hover {
        background: #4CC183;
        color: #F3F3F3;
    }

    .okBtn:focus {
        background: #38BF74;
        color: #F3F3F3;
    }

    .cancelBtn {
        background: #F3F3F3;
        color: #4CC183;
        border-radius: 0 0 4px 4px;
        float: left;
    }

    .cancelBtn:hover {
        background: #4CC183;
        color: #F3F3F3;
    }

    .cancelBtn:focus {
        background: #38BF74;
        color: #F3F3F3;
    }

    .error {
        color: rgba(245, 34, 45, 1);
    }

    .warn {
        color: rgba(246, 167, 36, 1);
    }

    .success {
        color: rgba(56, 190, 117, 1);
    }
}

.FormTitle {
    .RowTitle {
        margin: 0 !important;

        .ant-form-item-label {
            margin-top: 5px;
        }
    }

    .ColTitle {
        padding: 0 !important;

        label {
            padding-right: 5px;
        }
    }

    .display {
        display: none;
    }
}

// 电子病历模板
.electronic-case-template {
    width: 100%;
    height: 100%;
    overflow: hidden;

    .operation-span {
        padding: 0 12px;
        height: 34px;
        line-height: 34px;
        background: #fafafa;

        &>span {
            margin-right: 6px;

            &:hover {
                cursor: pointer;
                color: rgb(77, 193, 130);
                font-weight: 900;
            }
        }
    }

    .insert-span {
        height: 40px;
        line-height: 40px;

        span {
            display: inline-block;
            border: 1px solid #e8e8e8;
            background: #fff;
            padding: 0 12px;
            border-radius: 6px;
            height: 30px;
            line-height: 30px;

            &:hover {
                cursor: pointer;
                border: 1px solid rgb(77, 193, 130);
                color: rgb(77, 193, 130);
            }
        }
    }

    .its-way {
        i {
            margin-right: 4px;
            font-size: 16px;

            &:hover {
                cursor: pointer;
                color: rgb(77, 193, 130);
                font-size: 18px;
            }
        }
    }

    .change-shadow {
        color: #4cc134;
        animation: change-shadow 1.3s ease-in infinite;
        /* 其它浏览器兼容性前缀 */
        -webkit-animation: change-shadow 1.3s linear infinite;
        -moz-animation: change-shadow 1.3s linear infinite;
        -ms-animation: change-shadow 1.3s linear infinite;
        -o-animation: change-shadow 1.3s linear infinite;
    }

    @keyframes change-shadow {
        0% {
            text-shadow: 0 0 4px #4cc134
        }

        50% {
            text-shadow: 0 0 40px #4cc134
        }

        100% {
            text-shadow: 0 0 4px #4cc134
        }
    }

    /* 添加兼容性前缀 */
    @-webkit-keyframes change-shadow {
        0% {
            text-shadow: 0 0 4px #4cc134
        }

        50% {
            text-shadow: 0 0 40px #4cc134
        }

        100% {
            text-shadow: 0 0 4px #4cc134
        }
    }

    @-moz-keyframes change-shadow {
        0% {
            text-shadow: 0 0 4px #4cc134
        }

        50% {
            text-shadow: 0 0 40px #4cc134
        }

        100% {
            text-shadow: 0 0 4px #4cc134
        }
    }

    @-ms-keyframes change-shadow {
        0% {
            text-shadow: 0 0 4px #4cc134
        }

        50% {
            text-shadow: 0 0 40px #4cc134
        }

        100% {
            text-shadow: 0 0 4px #4cc134
        }
    }

    @-o-keyframes change-shadow {
        0% {
            text-shadow: 0 0 4px #4cc134
        }

        50% {
            text-shadow: 0 0 40px #4cc134
        }

        100% {
            text-shadow: 0 0 4px #4cc134
        }
    }
}

.electronic-case-template-modal {
    .ant-modal-body {
        padding: 12px;
    }
}

// PublicModalTable组件
.public-modal-table {
    .ant-modal-body {
        padding: 0;
    }

    .ant-table-thead>tr,
    .ant-table-tbody>tr {
        height: 30px !important;
    }

    .ant-table-tbody>tr {
        height: 26px !important;
    }

    .ant-table-fixed-header .ant-table-scroll .ant-table-header {
        opacity: inherit;
    }

    .ant-table-placeholder {
        border-bottom: none;
    }
}

.video-Class {
    width: 50%;
    height: 50%;
    margin: 50px auto;
    background-color: aquamarine;
    display: block;
}

// 公共table
.public-table-pagination {

    .react-resizable {
        position: relative !important;
        background-clip: padding-box !important;
    }

    .react-resizable-handle {
        position: absolute !important;
        width: 10px !important;
        height: 100% !important;
        bottom: 0 !important;
        right: -5px !important;
        cursor: col-resize !important;
        z-index: 1 !important;
    }
}

// 动态表单
.dynamic-rendering-form {

    .drf-label {
        padding: 2px 4px;
        border-bottom: 2px solid #fad355;

        &>.ant-anchor-link-title {
            color: rgba(0, 0, 0, 0.85);
        }
    }

    .drf-anchor {
        display: inline-flex;
        padding-left: 0;

        .ant-anchor {
            padding-left: 0;
        }

        .ant-anchor-ink {
            display: none;
        }
    }

    .drf-anchor-active {
        background: #faf1d1;
    }

    .ant-form-item-label {
        font-weight: normal;

        label {
            // font-size: 13px;

            .ellipsis {
                white-space: pre-wrap;
            }
        }
    }

    .drf-form-item.ant-row.ant-form-item {
        display: flex;
        align-items: center;

        .ant-form-item-label {
            line-height: normal;
        }
    }

    .drf-form-textArea-item {
        .ant-form-item-control-wrapper .ant-form-item-control {
            line-height: 24px;
        }
    }
}

.dynamic-rendering-form-drawer {
    .ant-drawer-close {
        height: 48px;
        width: 48px;
        line-height: 48px;
    }

    .drfd-content {
        width: 100%;
        overflow: auto;
        padding-right: 6px;
        box-sizing: border-box;
    }

    .drfd-item {
        cursor: pointer;
        width: 100%;
        line-height: 1.5;
        border-radius: 6px;
        background-color: #fff;
        border: 1px solid #dee0e3;
        position: relative;
        margin-bottom: 12px;

        .drfd-item-top-line {
            display: none;
        }

        .drfd-item-header {
            align-items: center;
            height: 36px;
            padding: 8px 12px 6px;
        }

        .drfd-item-header-title {
            height: 20px;
            padding-left: 8px;
            padding-right: 6px;
            color: #646a73;
            // font-size: 14px;
            line-height: 20px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            position: relative;

            &::after {
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                width: 2px;
                height: 100%;
                background-color: #bbbfc4 !important;
                border-radius: 1px;
            }
        }

        .drfd-item-content {
            padding: 12px;
            padding-top: 6px;
            color: #999;
            font-weight: normal;
        }
    }

    .drfd-item-active {
        box-shadow: 0 8px 16px #1f23291a;

        .drfd-item-top-line {
            display: block;
            position: absolute;
            top: -2px;
            left: -1px;
            right: -1px;
            width: 100%;
            border-top: 6px solid #ffc60a;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
        }
    }
}

.public-table-editable {
    .public-table-editable-operation {
        text-decoration: none;
    }
}